package com.ldy.service.impl;

import com.ldy.service.HelloService;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;


/**
 * @author lin DeYU
 * @date 2021/3/25
 */
public class HelloServiceImpl implements HelloService.Iface,HelloService.AsyncIface {


    @Override
    public String hello(String name) throws TException {
        return "hello "+name+" ! welcome thrift RPC !";
    }

    @Override
    public void hello(String name, AsyncMethodCallback<String> resultHandler) throws TException {

    }
}
